package com.est.dase;

import android.app.Activity;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.ListView;

import com.est.dase.adapter.ListAdapter;
/**
*
* @author Fernando Geraldes, Jaime Santos, Jorge Silva
*
*/
public class Command extends Activity{
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.command);
		
		int[] items = {R.drawable.way,R.drawable.wys};
		Resources res = getResources();
		String[] questions = {res.getString(R.string.command_question_WAY), res.getString(R.string.command_question_WIS)};
		String[] answers = {res.getString(R.string.command_answer_WAY), res.getString(R.string.command_answer_WIS)};
		ListAdapter listAdapter = new ListAdapter(this, items, questions, answers);
		
		ListView list = (ListView) findViewById(R.id.list);
		list.setAdapter(listAdapter);
	}

}
